home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / abs.man < prev    next >
Encoding:
Text File  |  1989-07-19  |  953 b   |  67 lines

  1.  
  2.  
  3.  
  4. ABS                   C Library Procedures                    ABS
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      abs, labs - integer absolute value
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<ssttddlliibb..hh>>
  13.  
  14.      iinntt aabbss((ii))
  15.      iinntt ii;;
  16.  
  17.      lloonngg iinntt llaabbss((ii))
  18.      lloonngg iinntt ii;;
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      _A_b_s returns the absolute value of its integer operand.  _L_a_b_s
  22.      is similar to _a_b_s except that its argument and its resul are
  23.      both of type lloonngg iinntt.
  24.  
  25. SSEEEE AALLSSOO
  26.      floor(3M) for _f_a_b_s
  27.  
  28. BBUUGGSS
  29.      Applying the _a_b_s function to the most negative integer gen-
  30.      erates a result which is the most negative integer.  That
  31.      is,
  32.  
  33.      abs(0x80000000)
  34.  
  35.      returns 0x80000000 as a result.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.